import requests

resp = requests.get(url="https://hmshop-test.itheima.net/",
                    params={"q":"iphone"})

print(resp.text)